import { FILTER_ACTIVE } from '../constants'

export const filterActive = data => ({ type: FILTER_ACTIVE, data })

export const filterActiveAsync = data => {
  return (dispatch) => {
    setTimeout(() => {
      dispatch(filterActive(data))
    }, 2000)
  }
}